package com.enlorenz.core.queue.transfer.exception;

/**
 * 消息队列异常
 * @author Karma
 */
public class MessageQueueException extends RuntimeException{
	private static final long serialVersionUID = 1265260334105538660L;
	//队列名
	private String queueName;
	/**
	 * 创建消息队列异常
	 * @param queueName	队列名
	 * @param msg	异常消息
	 */
	public MessageQueueException(String queueName,String msg){
		super(msg);
		this.queueName=queueName;
	}
	
	/**
	 * 获取队列名
	 * @return 对列名字符串
	 */
	public String getQueueName() {
		return queueName;
	}
	
	/**
	 * 设置对列名
	 * @param queueName 对列名
	 */
	public void setQueueName(String queueName) {
		this.queueName = queueName;
	}

}
